Lab6 – Use Tools and C Language to Control I2C
----------------------------------------------------------------

/* Use I2C Tool on EVB */
i2cdetect -y 0

----------------------------------------------------------------

/* Create Source Code in C Language */
/* Execute Commands on Host PC */
mkdir -p ~/Linux4MCHP/Projects
cd ~/Linux4MCHP/Projects
code i2c.c

/* Copy the source code of "i2c.c" and paste it */

----------------------------------------------------------------

/* Compile C Language Code */
/* Execute Commands on Host PC */
~/Linux4MCHP/sdk/bin/arm-buildroot-linux-gnueabi-gcc i2c.c -o i2c_test
ls i2c*

----------------------------------------------------------------

/* Send the application to Embedded Linux OS (EVB) */

----------------------------------------------------------------

/* Execute Application on EVB */
chmod +x i2c_test
./i2c_test

----------------------------------------------------------------